<!--富文本编辑器开始-->
<script type="text/javascript">
    var url='/api/ueditor/index.html?app=admin';
    var ue = UE.getEditor('content1a',{
        serverUrl :url,
        UEDITOR_HOME_URL:'{:config('template.ueditor')}/',
        toolbars:[
            ['source','undo','redo','justifyleft','justifycenter','justifyright','bold','italic','underline','strikethrough','link','unlink','fontfamily','fontsize','forecolor','backcolor','simpleupload','insertimage','attachment','map','insertvideo','music','scrawl','emotion','inserttable', 'insertrow' , 'deleterow', 'insertcol', 'deletecol' , 'mergecells', 'splittocells']
        ],
        'enterTag': 'br',//把换行P改为br
        allowDivTransToP:false,//div自动转为p标签设为false：不转换
        // zIndex:1100,//覆盖modal
    });
    ue.addListener('focus',function(type,event){
        if($.trim(ue.getContent()) == '') {
            ue.setContent('');
        }
    });
    ue.ready(function(){
        ue.execCommand('serverparam', {
        'userid': {:session('userid')},
        });
    });
</script>
<!--富文本编辑器结束-->